﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PocketEngine.Effects
{
    public class pEffectSoftParticle : pEffect
    {
        private pEffectParameter VisMap;
        private pEffectParameter BackMap;
        private pEffectParameter OccMap;
        private pEffectParameter Col;
        public Engine.pColor Color = Engine.pColor.White;
        public pEffectSoftParticle()
            : base(new pVertexShader("Content/Shaders/SoftParticleVert.glsl"), new pPixelShader("Content/Shaders/SoftParticleFrag.glsl"))
        {
            VisMap = GetParameter("pVisualMap");
            BackMap = GetParameter("pBackgroundMap");
            OccMap = GetParameter("pOcclusionMap");
            Col = GetParameter("pColor");
        }
        public override void Bind(PocketEngine.Materials.pMaterial mat)
        {
            base.Bind(mat);
            VisMap.SetInt(0);
            BackMap.SetInt(1);
            OccMap.SetInt(3);
            Col.SetCol(Color);
        }
    }
}
